package com.sixteengroup.personnelms.service.personnel;

import com.sixteengroup.personnelms.dao.personnel.StaffMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GetUserInfo {
    @Autowired
    StaffMapper staffMapper;
    public int getUserStatus(int userId){
        Integer userState = staffMapper.getUserState(userId);
        if (userState!=null){
            return userState;
        }else {
            return 0;
        }
    }


    public String getDeptName(int id) {
       return staffMapper.getDeptName(id);
    }
}
